package com.test.qpbgboot.backend.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class BackendAccountSaveParam {
    @ApiModelProperty(value = "管理员账号id")
    private Long id;
    @ApiModelProperty(value = "商家id")
    private Long merchantId;
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "状态 0禁用 1启用", required = true)
    @NotBlank(message = "状态不能为空")
    private String status;
    @ApiModelProperty(value = "用户类型 0平台管理员 1商家管理员", required = true)
    @NotBlank(message = "用户类型不能为空")
    private String type;
}
